package com.xlx.openLink.handler;

import com.xlx.openLink.base.SnmpException;
import lombok.extern.slf4j.Slf4j;
import org.snmp4j.Snmp;
import org.snmp4j.Target;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Admin
 */
@Slf4j
@Component
public class AddHandler {
    /**
     * 添加表格
     *
     * @param obj
     * @param snmp
     * @param target
     * @throws SnmpException
     */
    @Autowired
    private UpdateHandler updateHandler;

    public void addTable(Object obj, Snmp snmp, Target target) throws SnmpException {
        updateHandler.update(obj, snmp, target);
    }

}
